﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Script.Serialization;
using Iesi.Collections;
using Iesi.Collections.Generic;

namespace DomainModel.Entities
{
    public class Tag
    {
        public virtual int TagID { get; set; }

        public virtual string TagName { get; set; }

        public virtual DateTime DateCreated{ get; set; }



        public int TagCount { get; set; }



        // one to many - one event to many Tags
        [ScriptIgnore]
        private ISet eventsList = new HashedSet();
        [ScriptIgnore]
        public ISet EventsList
        {
            get { return eventsList; }
            set { eventsList = value; }
        }

        public void AddEvent(Event item)
        {
            EventsList.Add(item);
        }



    }
}
